package com.newMedical.medical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.newMedical.medical.mapper.DocIcdMapper;
import com.newMedical.medical.domain.DocIcd;
import com.newMedical.medical.service.IDocIcdService;

/**
 * 疾病表Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-03
 */
@Service
public class DocIcdServiceImpl implements IDocIcdService 
{
    @Autowired
    private DocIcdMapper docIcdMapper;

    /**
     * 查询疾病表
     * 
     * @param id 疾病表主键
     * @return 疾病表
     */
    @Override
    public DocIcd selectDocIcdById(Long id)
    {
        return docIcdMapper.selectDocIcdById(id);
    }

    /**
     * 查询疾病表列表
     * 
     * @param docIcd 疾病表
     * @return 疾病表
     */
    @Override
    public List<DocIcd> selectDocIcdList(DocIcd docIcd)
    {
        return docIcdMapper.selectDocIcdList(docIcd);
    }

    /**
     * 新增疾病表
     * 
     * @param docIcd 疾病表
     * @return 结果
     */
    @Override
    public int insertDocIcd(DocIcd docIcd)
    {
        return docIcdMapper.insertDocIcd(docIcd);
    }

    /**
     * 修改疾病表
     * 
     * @param docIcd 疾病表
     * @return 结果
     */
    @Override
    public int updateDocIcd(DocIcd docIcd)
    {
        return docIcdMapper.updateDocIcd(docIcd);
    }

    /**
     * 批量删除疾病表
     * 
     * @param ids 需要删除的疾病表主键
     * @return 结果
     */
    @Override
    public int deleteDocIcdByIds(Long[] ids)
    {
        return docIcdMapper.deleteDocIcdByIds(ids);
    }

    /**
     * 删除疾病表信息
     * 
     * @param id 疾病表主键
     * @return 结果
     */
    @Override
    public int deleteDocIcdById(Long id)
    {
        return docIcdMapper.deleteDocIcdById(id);
    }
}
